package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {

    void add(Role role, Integer[] permissionIds,Integer[] menuIds);

    void delete(Integer id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Role> findAll();

    Role findById(Integer id);

    List<Integer> findMenuByRoleId(Integer id);

    PageResult findPage(QueryPageBean queryPageBean);

    List<Integer> findPermissionByRoleId(Integer id);
}
